/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include <stdio.h>

#ifdef _DEBUG 

#pragma comment(lib,"D:/U/Project/x64/Debug/engine.lib")

#else

#pragma comment(lib,"D:/U/Project/x64/Release/engine.lib")

//#pragma comment(lib,"D:/U/DEV/FleX/lib/win64/NvFlexReleaseCUDA_x64.lib")
//#pragma comment(lib,"D:/U/DEV/FleX/lib/win64/NvFlexDeviceRelease_x64.lib")
//#pragma comment(lib,"D:/U/DEV/FleX/lib/win64/NvFlexExtReleaseCUDA_x64.lib")

//#pragma comment(lib,"D:/U/DEV/SDL/lib/x64/SDL2.lib")

#endif



//#include "实验/flex测试.h"
//#include "实验/车辆AI训练.h"
//#include "A_引擎/引擎.h"
//#include "实验/强化训练环境/抛球.h"
//#include "实验/物理引擎测试.h"

#include <JIT.h>
#include <core/设备内存缓存.h>


#include "A_引擎/init.h"
#include "主窗口.h"
//#include "框架/工作区/ui属性栏.h"




int main() {
	//_CrtSetBreakAlloc(0x000002C45A9B7160);
	std::locale::global(std::locale("zh_CN.UTF-8"));

	f_init_JTI();

	f_init_Engine();
	f_init主窗口();
	

	f_run主循环();

	
	f_release_Engine();
	f_close_JIT();

	f_buf_释放所有();
	//_CrtDumpMemoryLeaks();
	return 0;
}
